package com.cy.pj.sys.dao;

import com.cy.pj.sys.pojo.SysNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.io.IOException;
import java.util.List;

@Mapper
public interface SysNoticeDao {
    List<SysNotice> selectNotices(SysNotice notice);

    int deleteById(Long... ids);

    @Select("select * from sys_notices where id=#{id}")
    SysNotice selectById(Long id);

    int insertNotice(SysNotice notice);

    int updateNotice(SysNotice notice);
}
